#region Using directives
using System;
using System.Data;
using WP.Commons;
#endregion

namespace WP.MF.DataEntity
{

	/*
	 * Created by Web Smart Create Code Tool
	 * At 4/5/2005
	 */

	//=========MSwitch  ============================
	[System.ComponentModel.DesignerCategory("Code")]
    public class MSwitchDEL : DataSet, IDataEntity
	{
		//=========mSwitch ============================
		public const string TABLENAME_MSWITCH="mSwitch";
		public const string RECID="RecId";
		public const string SWITCHSYS="SwitchSys";
		public const string SWITCHNAME="SwitchName";
		public const string SWITCHDESC="SwitchDesc";
		public const string SWITCHVALUE="SwitchValue";
		public const string PROGRESSSWITCHNAME="ProgressSwitchName";
		public const string SWITCHNO="SwitchNo";
		public const string SPECIALSWITCH="SpecialSwitch";
		public const string INSWITCHMAINT="InSwitchMaint";
        public const string NOTUSED = "NotUsed";
        public const string RECSTAMP = "RecStamp";
        private System.Collections.Specialized.NameValueCollection mVarCollection = new System.Collections.Specialized.NameValueCollection();
        public System.Collections.Specialized.NameValueCollection VarCollection
        {
            get { return mVarCollection; }
            set { mVarCollection = value; }
        }

		public MSwitchDEL()
		{
			//Create mSwitch structure
			CreatemSwitchStructure();

		}

		//=========mSwitch============================
		private void CreatemSwitchStructure()
		{
			DataTable table;
			DataColumnCollection DCC;
			DataColumn DC=new DataColumn();
			table=new DataTable (TABLENAME_MSWITCH);
			DCC=table.Columns;

            DC = new DataColumn(RECID, typeof(System.Int32));
            DC.DefaultValue = 0;
			DCC.Add(DC);

			DC=new DataColumn(SWITCHSYS,typeof(System.String));
            DC.MaxLength = 2;
            DC.DefaultValue = "";
			DCC.Add(DC);

			DC=new DataColumn(SWITCHNAME,typeof(System.String));
            DC.MaxLength = 30;
            DC.DefaultValue = "";
			DCC.Add(DC);

			DC=new DataColumn(SWITCHDESC,typeof(System.String));
            DC.MaxLength = 400;
            DC.DefaultValue = "";
			DCC.Add(DC);

            DC = new DataColumn(SWITCHVALUE, typeof(System.Boolean));
            DC.DefaultValue = false;
			DCC.Add(DC);

			DC=new DataColumn(PROGRESSSWITCHNAME,typeof(System.String));
            DC.MaxLength = 15;
            DC.DefaultValue = "";
			DCC.Add(DC);

            DC = new DataColumn(SWITCHNO, typeof(System.Int32));
            DC.DefaultValue = 0;
			DCC.Add(DC);

            DC = new DataColumn(SPECIALSWITCH, typeof(System.Boolean));
            DC.DefaultValue = false;
			DCC.Add(DC);

            DC = new DataColumn(INSWITCHMAINT, typeof(System.Boolean));
            DC.DefaultValue = true;
			DCC.Add(DC);

            DC = new DataColumn(NOTUSED, typeof(System.Boolean));
            DC.DefaultValue = true;
            DCC.Add(DC);

            DC = new DataColumn(RECSTAMP, typeof(System.Byte[]));
            DCC.Add(DC);

			//Key
			DataColumn[] DCS=new DataColumn[1];
			DCS[0]=DCC[RECID];
			table.PrimaryKey=DCS;

			this.Tables.Add (table);
		}

	}
}